<template>
  <div>
    <div class="weekend-title">周末去哪儿</div>
    <ul>
      <li class="item" v-for="item of weekendList" :key="item.id">
        <div class="item-img-wrapper">
          <img :src="'/static/img/' + item.url" alt="" class="item-img">
        </div>
        <div class="item-desc-wrapper">
          <p class="item-desc-title">{{item.title}}</p>
          <p class="item-desc-info">{{item.info}}</p>
        </div>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  name: 'TravelWeekend',
  props: {
    weekendList: {
      type: Array
    }
  }
}
</script>

<style scoped lang="stylus">
  .weekend-title
    height: .8rem
    line-height: .8rem
    background-color: #eee
    text-indent: .2rem
  .item
    .item-img-wrapper
      width: 100%
      height: 0
      overflow: hidden
      padding-bottom: 37.09%
      .item-img
        width: 100%
    .item-desc-wrapper
      padding: .2rem
      .item-desc-title
        height: .5rem
        line-height: .5rem
      .item-desc-info
        height: .35rem
        line-height: .35rem
        font-size: .24rem
        color: #616161

</style>
